package com.esm.pdafx.model;

import zuo.biao.library.base.BaseModel;

/*

{"code":1,"msg":"ok","time":"1638429427","data":{"lpn":"00037481-93cb-457a-b4f7-81f3bf5081cd_16","kehu_po":"1637649925_7","po":"1637649925_7_1","kwh":"","type":2,"shuangshu":12,"ncodelist":[{"ncodeid":"00037481-93cb-457a-b4f7-81f3bf5081cd_1","style":null,"size":"7","num":0,"plan_num":3,"ncode":"1637649925_7_1-bb3"},{"ncodeid":"00037481-93cb-457a-b4f7-81f3bf5081cd_2","style":null,"size":"7.5","num":0,"plan_num":3,"ncode":"1637649925_7_1-bb4"},{"ncodeid":"00037481-93cb-457a-b4f7-81f3bf5081cd_3","style":null,"size":"8","num":0,"plan_num":3,"ncode":"1637649925_7_1-bb5"},{"ncodeid":"00037481-93cb-457a-b4f7-81f3bf5081cd_4","style":null,"size":"8.5","num":0,"plan_num":3,"ncode":"1637649925_7_1-bb6"}]}}

 */
//内盒
public class SBox extends BaseModel {

    private static final long serialVersionUID = 1L;

    private String ncodeid = ""; //id
    private String ncode = ""; //内盒条码
    private String style = ""; //型体
    private String size = ""; //尺码
    private int num = 0; //入库数量
    private int plan_num = 0; //封箱数量

    public SBox() {
        //default
    }

    public String getNcode() {
        return ncode;
    }

    public void setNcode(String ncode) {
        this.ncode = ncode;
    }

    public SBox(long id) {
        this();
        this.id = id;
    }

    public String getNcodeid() {
        return ncodeid;
    }

    public void setNcodeid(String ncodeid) {
        this.ncodeid = ncodeid;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getPlan_num() {
        return plan_num;
    }

    public void setPlan_num(int plan_num) {
        this.plan_num = plan_num;
    }

    @Override
    protected boolean isCorrect() {//根据自己的需求决定，也可以直接 return true
        return id > 0;// && StringUtil.isNotEmpty(phone, true);
    }

}
